package com.holyant.goods.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * 商品SKUdto
 * 
 * @author tswsoft
 * @date 2021-04-06
 */
@Data
@ApiModel("商品SKU新增Dto")
public class GdsSkuSaveDto {

    private static final long serialVersionUID = 1L;

    private Long id;

    /** sku编号 */
    @Excel(name = "sku编号")
    @ApiModelProperty(value = "sku编号")
    private String code;

    /** sku名称 */
    @Excel(name = "sku名称")
    @ApiModelProperty(value = "sku名称")
    private String name;

    /**
     * 所属商品id
     */
    private Long goodsId;

    private Long categoryId;

    /** 状态  0 正常 1 停用 */
    @Excel(name = "状态  0 正常 1 停用")
    @ApiModelProperty(value = "状态  0 正常 1 停用")
    private String status;

    /** 采购价 */
    @Excel(name = "采购价")
    @ApiModelProperty(value = "采购价")
    private BigDecimal purPrc;

    /** 销售价 */
    @Excel(name = "销售价")
    @ApiModelProperty(value = "销售价")
    private BigDecimal salesPrc;

    /** 失效日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "失效日期", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "失效日期")
    private LocalDate expireDate;

    /** 扩展属性 */
    @Excel(name = "扩展属性")
    @ApiModelProperty(value = "扩展属性")
    private String extAttr;

    /** 是否上架 1 是 0 否 */
    @Excel(name = "是否上架 1 是 0 否")
    @ApiModelProperty(value = "是否上架 1 是 0 否")
    private String shelfFlag;

    /** 备注 */
    @Excel(name = "备注")
    @ApiModelProperty(value = "备注")
    private String remark;
    @ApiModelProperty(value = "流水号")
    private Integer serialNum;
    @ApiModelProperty(value = "品牌ID")
    private Long brandId;

}
